.class Lcom/bitauto/autoeasy/widget/MyViewGroup$1;
.super Ljava/lang/Object;
.source "MyViewGroup.java"

# interfaces
.implements Landroid/view/GestureDetector$OnGestureListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/bitauto/autoeasy/widget/MyViewGroup;->initView(Landroid/content/Context;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/bitauto/autoeasy/widget/MyViewGroup;

.field private final synthetic val$context:Landroid/content/Context;


# direct methods
.method constructor <init>(Lcom/bitauto/autoeasy/widget/MyViewGroup;Landroid/content/Context;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/bitauto/autoeasy/widget/MyViewGroup$1;->this$0:Lcom/bitauto/autoeasy/widget/MyViewGroup;

    iput-object p2, p0, Lcom/bitauto/autoeasy/widget/MyViewGroup$1;->val$context:Landroid/content/Context;

    .line 84
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onDown(Landroid/view/MotionEvent;)Z
    .locals 1
    .parameter "e"

    .prologue
    .line 129
    const/4 v0, 0x0

    return v0
.end method

.method public onFling(Landroid/view/MotionEvent;Landroid/view/MotionEvent;FF)Z
    .locals 5
    .parameter "e1"
    .parameter "e2"
    .parameter "velocityX"
    .parameter "velocityY"

    .prologue
    const/4 v4, 0x0

    const/4 v2, 0x1

    const-string v3, "MyViewGroup"

    .line 107
    const-string v0, "MyViewGroup"

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "min velocity >>>"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 108
    iget-object v1, p0, Lcom/bitauto/autoeasy/widget/MyViewGroup$1;->val$context:Landroid/content/Context;

    invoke-static {v1}, Landroid/view/ViewConfiguration;->get(Landroid/content/Context;)Landroid/view/ViewConfiguration;

    move-result-object v1

    .line 109
    invoke-virtual {v1}, Landroid/view/ViewConfiguration;->getScaledMinimumFlingVelocity()I

    move-result v1

    .line 108
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    .line 110
    const-string v1, " current velocity>>"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, p3}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 107
    invoke-static {v3, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 111
    invoke-static {p3}, Ljava/lang/Math;->abs(F)F

    move-result v0

    iget-object v1, p0, Lcom/bitauto/autoeasy/widget/MyViewGroup$1;->val$context:Landroid/content/Context;

    invoke-static {v1}, Landroid/view/ViewConfiguration;->get(Landroid/content/Context;)Landroid/view/ViewConfiguration;

    move-result-object v1

    .line 112
    invoke-virtual {v1}, Landroid/view/ViewConfiguration;->getScaledMinimumFlingVelocity()I

    move-result v1

    int-to-float v1, v1

    cmpl-float v0, v0, v1

    if-lez v0, :cond_0

    .line 113
    cmpl-float v0, p3, v4

    if-lez v0, :cond_1

    iget-object v0, p0, Lcom/bitauto/autoeasy/widget/MyViewGroup$1;->this$0:Lcom/bitauto/autoeasy/widget/MyViewGroup;

    invoke-static {v0}, Lcom/bitauto/autoeasy/widget/MyViewGroup;->access$0(Lcom/bitauto/autoeasy/widget/MyViewGroup;)I

    move-result v0

    if-lez v0, :cond_1

    .line 114
    const-string v0, "MyViewGroup"

    const-string v0, ">>>>fling to left"

    invoke-static {v3, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 115
    iget-object v0, p0, Lcom/bitauto/autoeasy/widget/MyViewGroup$1;->this$0:Lcom/bitauto/autoeasy/widget/MyViewGroup;

    invoke-static {v0, v2}, Lcom/bitauto/autoeasy/widget/MyViewGroup;->access$1(Lcom/bitauto/autoeasy/widget/MyViewGroup;Z)V

    .line 116
    iget-object v0, p0, Lcom/bitauto/autoeasy/widget/MyViewGroup$1;->this$0:Lcom/bitauto/autoeasy/widget/MyViewGroup;

    iget-object v1, p0, Lcom/bitauto/autoeasy/widget/MyViewGroup$1;->this$0:Lcom/bitauto/autoeasy/widget/MyViewGroup;

    invoke-static {v1}, Lcom/bitauto/autoeasy/widget/MyViewGroup;->access$0(Lcom/bitauto/autoeasy/widget/MyViewGroup;)I

    move-result v1

    sub-int/2addr v1, v2

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/widget/MyViewGroup;->scrollToScreen(I)V

    .line 125
    :cond_0
    :goto_0
    return v2

    .line 117
    :cond_1
    cmpg-float v0, p3, v4

    if-gez v0, :cond_0

    .line 118
    iget-object v0, p0, Lcom/bitauto/autoeasy/widget/MyViewGroup$1;->this$0:Lcom/bitauto/autoeasy/widget/MyViewGroup;

    invoke-static {v0}, Lcom/bitauto/autoeasy/widget/MyViewGroup;->access$0(Lcom/bitauto/autoeasy/widget/MyViewGroup;)I

    move-result v0

    iget-object v1, p0, Lcom/bitauto/autoeasy/widget/MyViewGroup$1;->this$0:Lcom/bitauto/autoeasy/widget/MyViewGroup;

    invoke-virtual {v1}, Lcom/bitauto/autoeasy/widget/MyViewGroup;->getChildCount()I

    move-result v1

    sub-int/2addr v1, v2

    if-ge v0, v1, :cond_0

    .line 119
    const-string v0, "MyViewGroup"

    const-string v0, ">>>>fling to right"

    invoke-static {v3, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 120
    iget-object v0, p0, Lcom/bitauto/autoeasy/widget/MyViewGroup$1;->this$0:Lcom/bitauto/autoeasy/widget/MyViewGroup;

    invoke-static {v0, v2}, Lcom/bitauto/autoeasy/widget/MyViewGroup;->access$1(Lcom/bitauto/autoeasy/widget/MyViewGroup;Z)V

    .line 121
    iget-object v0, p0, Lcom/bitauto/autoeasy/widget/MyViewGroup$1;->this$0:Lcom/bitauto/autoeasy/widget/MyViewGroup;

    iget-object v1, p0, Lcom/bitauto/autoeasy/widget/MyViewGroup$1;->this$0:Lcom/bitauto/autoeasy/widget/MyViewGroup;

    invoke-static {v1}, Lcom/bitauto/autoeasy/widget/MyViewGroup;->access$0(Lcom/bitauto/autoeasy/widget/MyViewGroup;)I

    move-result v1

    add-int/lit8 v1, v1, 0x1

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/widget/MyViewGroup;->scrollToScreen(I)V

    goto :goto_0
.end method

.method public onLongPress(Landroid/view/MotionEvent;)V
    .locals 0
    .parameter "e"

    .prologue
    .line 103
    return-void
.end method

.method public onScroll(Landroid/view/MotionEvent;Landroid/view/MotionEvent;FF)Z
    .locals 4
    .parameter "e1"
    .parameter "e2"
    .parameter "distanceX"
    .parameter "distanceY"

    .prologue
    const/4 v3, 0x1

    const/4 v2, 0x0

    .line 95
    cmpl-float v0, p3, v2

    if-lez v0, :cond_0

    iget-object v0, p0, Lcom/bitauto/autoeasy/widget/MyViewGroup$1;->this$0:Lcom/bitauto/autoeasy/widget/MyViewGroup;

    invoke-static {v0}, Lcom/bitauto/autoeasy/widget/MyViewGroup;->access$0(Lcom/bitauto/autoeasy/widget/MyViewGroup;)I

    move-result v0

    iget-object v1, p0, Lcom/bitauto/autoeasy/widget/MyViewGroup$1;->this$0:Lcom/bitauto/autoeasy/widget/MyViewGroup;

    invoke-virtual {v1}, Lcom/bitauto/autoeasy/widget/MyViewGroup;->getChildCount()I

    move-result v1

    sub-int/2addr v1, v3

    if-lt v0, v1, :cond_1

    .line 96
    :cond_0
    cmpg-float v0, p3, v2

    if-gez v0, :cond_2

    iget-object v0, p0, Lcom/bitauto/autoeasy/widget/MyViewGroup$1;->this$0:Lcom/bitauto/autoeasy/widget/MyViewGroup;

    invoke-virtual {v0}, Lcom/bitauto/autoeasy/widget/MyViewGroup;->getScrollX()I

    move-result v0

    if-lez v0, :cond_2

    .line 97
    :cond_1
    iget-object v0, p0, Lcom/bitauto/autoeasy/widget/MyViewGroup$1;->this$0:Lcom/bitauto/autoeasy/widget/MyViewGroup;

    float-to-int v1, p3

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Lcom/bitauto/autoeasy/widget/MyViewGroup;->scrollBy(II)V

    .line 99
    :cond_2
    return v3
.end method

.method public onShowPress(Landroid/view/MotionEvent;)V
    .locals 0
    .parameter "e"

    .prologue
    .line 91
    return-void
.end method

.method public onSingleTapUp(Landroid/view/MotionEvent;)Z
    .locals 1
    .parameter "e"

    .prologue
    .line 87
    const/4 v0, 0x0

    return v0
.end method
